<h1>Enderecos List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Logradouro</th>
      <th>Numero</th>
      <th>Cep</th>
      <th>Bairro</th>
      <th>Usuario</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($enderecos as $endereco): ?>
    <tr>
      <td><a href="<?php echo url_for('endereco/show?id='.$endereco->getId()) ?>"><?php echo $endereco->getId() ?></a></td>
      <td><?php echo $endereco->getLogradouro() ?></td>
      <td><?php echo $endereco->getNumero() ?></td>
      <td><?php echo $endereco->getCep() ?></td>
      <td><?php echo $endereco->getBairroId() ?></td>
      <td><?php echo $endereco->getUsuarioId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('endereco/new') ?>">New</a>
